package com.lxw.nonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("t_chronic_disease_category")
@ApiModel(value = "ChronicDiseaseCategory对象", description = "慢性病分类表")
public class ChronicDiseaseCategory implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("疾病ID")
    @TableId(value = "disease_id", type = IdType.AUTO)
    private Integer diseaseId;

    @ApiModelProperty("疾病编码(如F29 01)")
    private String diseaseCode;

    @ApiModelProperty("拼音码(如jsb)")
    private String pinyinCode;

    @ApiModelProperty("疾病名称")
    private String diseaseName;

    @ApiModelProperty("疾病类型")
    private String description;

    @ApiModelProperty("状态(1-启用,0-禁用)")
    private Byte status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
